package com.skt.domain.DTO.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

// 租赁商品项请求类
@Data
@Schema(description = "租赁商品项")
public class RentalItemRequest {
    
    @NotBlank(message = "服装ID不能为空")
    @Schema(description = "服装ID", example = "costume_001")
    private String costumeId;
    
    @NotBlank(message = "尺寸不能为空")
    @Schema(description = "服装尺寸", example = "M")
    private String size;
    
    @NotNull(message = "租赁天数不能为空")
    @Min(value = 1, message = "租赁天数至少1天")
    @Schema(description = "租赁天数", example = "3")
    private Integer rentalDays;
    
    @NotBlank(message = "开始日期不能为空")
    @Schema(description = "租赁开始日期", example = "2024-03-15")
    private String startDate;
    
    @NotBlank(message = "结束日期不能为空")
    @Schema(description = "租赁结束日期", example = "2024-03-17")
    private String endDate;
}